﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Site.Master" CodeBehind="AddNews.aspx.vb" Inherits="JamaicanKitchen.AddNews" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <p>
        &nbsp;</p>
    <p>
        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
            DataKeyNames="ID" DataSourceID="SqlDataSource1">
            <Columns>
                <asp:BoundField DataField="ID" HeaderText="ID" InsertVisible="False" 
                    ReadOnly="True" SortExpression="ID" />
                <asp:BoundField DataField="AddedBy" HeaderText="AddedBy" 
                    SortExpression="AddedBy" />
                <asp:BoundField DataField="Title" HeaderText="Title" SortExpression="Title" />
                <asp:BoundField DataField="NewsBody" HeaderText="NewsBody" 
                    SortExpression="NewsBody" />
            </Columns>
        </asp:GridView>
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
            ConnectionString="<%$ ConnectionStrings:JamaicanConnectionString %>" 
            ProviderName="<%$ ConnectionStrings:JamaicanConnectionString.ProviderName %>" 
            SelectCommand="SELECT * FROM [AddNews]"></asp:SqlDataSource>
        <br />
    </p>
    <p>
        Added by
        <asp:TextBox ID="tb_addedby" runat="server"></asp:TextBox>
    </p>
    <p>
        Title&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <asp:TextBox ID="tb_newstitle" runat="server"></asp:TextBox>
    </p>
    <p>
        NewsBody
        <asp:TextBox ID="tb_newsbody" runat="server" Height="128px" 
            TextMode="MultiLine" Width="314px"></asp:TextBox>
    </p>
    <p>
        <asp:Button ID="btn_addNews" runat="server" Text="Add News" Width="116px" />
    </p>
    <p>
    </p>
</asp:Content>
